{"ast":null,"code":"import _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { formatMuiErrorMessage as _formatMuiErrorMessage } from \"@mui/utils\";\nimport * as React from 'react';\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { useFormControlUnstyledContext } from '../FormControlUnstyled';\nimport extractEventHandlers from '../utils/extractEventHandlers';\nexport default function useInput(parameters) {\n  var defaultValueProp = parameters.defaultValue,\n    _parameters$disabled = parameters.disabled,\n    disabledProp = _parameters$disabled === void 0 ? false : _parameters$disabled,\n    _parameters$error = parameters.error,\n    errorProp = _parameters$error === void 0 ? false : _parameters$error,\n    onBlur = parameters.onBlur,\n    onChange = parameters.onChange,\n    onFocus = parameters.onFocus,\n    _parameters$required = parameters.required,\n    requiredProp = _parameters$required === void 0 ? false : _parameters$required,\n    valueProp = parameters.value;\n  var formControlContext = useFormControlUnstyledContext();\n  var defaultValue;\n  var disabled;\n  var error;\n  var required;\n  var value;\n  if (formControlContext) {\n    var _formControlContext$d, _formControlContext$e, _formControlContext$r;\n    defaultValue = undefined;\n    disabled = (_formControlContext$d = formControlContext.disabled) != null ? _formControlContext$d : false;\n    error = (_formControlContext$e = formControlContext.error) != null ? _formControlContext$e : false;\n    required = (_formControlContext$r = formControlContext.required) != null ? _formControlContext$r : false;\n    value = formControlContext.value;\n    if (process.env.NODE_ENV !== 'production') {\n      var definedLocalProps = ['defaultValue', 'disabled', 'error', 'required', 'value'].filter(function (prop) {\n        return parameters[prop] !== undefined;\n      });\n      if (definedLocalProps.length > 0) {\n        console.warn(['MUI: You have set props on an input that is inside a FormControlUnstyled.', 'Set these props on a FormControlUnstyled instead. Otherwise they will be ignored.', \"Ignored props: \".concat(definedLocalProps.join(', '))].join('\\n'));\n      }\n    }\n  } else {\n    defaultValue = defaultValueProp;\n    disabled = disabledProp;\n    error = errorProp;\n    required = requiredProp;\n    value = valueProp;\n  }\n  var _React$useRef = React.useRef(value != null),\n    isControlled = _React$useRef.current;\n  var handleInputRefWarning = React.useCallback(function (instance) {\n    if (process.env.NODE_ENV !== 'production') {\n      if (instance && instance.nodeName !== 'INPUT' && !instance.focus) {\n        console.error(['MUI: You have provided a `slots.input` to the input component', 'that does not correctly handle the `ref` prop.', 'Make sure the `ref` prop is called with a HTMLInputElement.'].join('\\n'));\n      }\n    }\n  }, []);\n  var inputRef = React.useRef(null);\n  var handleInputRef = useForkRef(inputRef, handleInputRefWarning);\n  var _React$useState = React.useState(false),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    focused = _React$useState2[0],\n    setFocused = _React$useState2[1];\n\n  // The blur won't fire when the disabled state is set on a focused input.\n  // We need to book keep the focused state manually.\n  React.useEffect(function () {\n    if (!formControlContext && disabled && focused) {\n      setFocused(false);\n\n      // @ts-ignore\n      onBlur == null ? void 0 : onBlur();\n    }\n  }, [formControlContext, disabled, focused, onBlur]);\n  var handleFocus = function handleFocus(otherHandlers) {\n    return function (event) {\n      var _otherHandlers$onFocu;\n      // Fix a bug with IE11 where the focus/blur events are triggered\n      // while the component is disabled.\n      if (formControlContext != null && formControlContext.disabled) {\n        event.stopPropagation();\n        return;\n      }\n      (_otherHandlers$onFocu = otherHandlers.onFocus) == null ? void 0 : _otherHandlers$onFocu.call(otherHandlers, event);\n      if (formControlContext && formControlContext.onFocus) {\n        var _formControlContext$o;\n        formControlContext == null ? void 0 : (_formControlContext$o = formControlContext.onFocus) == null ? void 0 : _formControlContext$o.call(formControlContext);\n      } else {\n        setFocused(true);\n      }\n    };\n  };\n  var handleBlur = function handleBlur(otherHandlers) {\n    return function (event) {\n      var _otherHandlers$onBlur;\n      (_otherHandlers$onBlur = otherHandlers.onBlur) == null ? void 0 : _otherHandlers$onBlur.call(otherHandlers, event);\n      if (formControlContext && formControlContext.onBlur) {\n        formControlContext.onBlur();\n      } else {\n        setFocused(false);\n      }\n    };\n  };\n  var handleChange = function handleChange(otherHandlers) {\n    return function (event) {\n      var _otherHandlers$onChan2;\n      var _formControlContext$o2, _otherHandlers$onChan;\n      if (!isControlled) {\n        var element = event.target || inputRef.current;\n        if (element == null) {\n          throw new Error(process.env.NODE_ENV !== \"production\" ? \"MUI: Expected valid input target. Did you use a custom `slots.input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.\" : _formatMuiErrorMessage(17));\n        }\n      }\n      formControlContext == null ? void 0 : (_formControlContext$o2 = formControlContext.onChange) == null ? void 0 : _formControlContext$o2.call(formControlContext, event);\n\n      // @ts-ignore\n      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n      (_otherHandlers$onChan = otherHandlers.onChange) == null ? void 0 : (_otherHandlers$onChan2 = _otherHandlers$onChan).call.apply(_otherHandlers$onChan2, [otherHandlers, event].concat(args));\n    };\n  };\n  var handleClick = function handleClick(otherHandlers) {\n    return function (event) {\n      var _otherHandlers$onClic;\n      if (inputRef.current && event.currentTarget === event.target) {\n        inputRef.current.focus();\n      }\n      (_otherHandlers$onClic = otherHandlers.onClick) == null ? void 0 : _otherHandlers$onClic.call(otherHandlers, event);\n    };\n  };\n  var getRootProps = function getRootProps() {\n    var externalProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    // onBlur, onChange and onFocus are forwarded to the input slot.\n    var propsEventHandlers = extractEventHandlers(parameters, ['onBlur', 'onChange', 'onFocus']);\n    var externalEventHandlers = _extends({}, propsEventHandlers, extractEventHandlers(externalProps));\n    return _extends({}, externalProps, externalEventHandlers, {\n      onClick: handleClick(externalEventHandlers)\n    });\n  };\n  var getInputProps = function getInputProps() {\n    var externalProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    var propsEventHandlers = {\n      onBlur: onBlur,\n      onChange: onChange,\n      onFocus: onFocus\n    };\n    var externalEventHandlers = _extends({}, propsEventHandlers, extractEventHandlers(externalProps));\n    var mergedEventHandlers = _extends({}, externalProps, externalEventHandlers, {\n      onBlur: handleBlur(externalEventHandlers),\n      onChange: handleChange(externalEventHandlers),\n      onFocus: handleFocus(externalEventHandlers)\n    });\n    return _extends({}, mergedEventHandlers, {\n      'aria-invalid': error || undefined,\n      defaultValue: defaultValue,\n      ref: handleInputRef,\n      value: value,\n      required: required,\n      disabled: disabled\n    });\n  };\n  return {\n    disabled: disabled,\n    error: error,\n    focused: focused,\n    formControlContext: formControlContext,\n    getInputProps: getInputProps,\n    getRootProps: getRootProps,\n    required: required,\n    value: value\n  };\n}","map":{"version":3,"names":["_extends","formatMuiErrorMessage","_formatMuiErrorMessage","React","unstable_useForkRef","useForkRef","useFormControlUnstyledContext","extractEventHandlers","useInput","parameters","defaultValueProp","defaultValue","disabled","disabledProp","error","errorProp","onBlur","onChange","onFocus","required","requiredProp","valueProp","value","formControlContext","_formControlContext$d","_formControlContext$e","_formControlContext$r","undefined","process","env","NODE_ENV","definedLocalProps","filter","prop","length","console","warn","join","useRef","isControlled","current","handleInputRefWarning","useCallback","instance","nodeName","focus","inputRef","handleInputRef","useState","focused","setFocused","useEffect","handleFocus","otherHandlers","event","_otherHandlers$onFocu","stopPropagation","call","_formControlContext$o","handleBlur","_otherHandlers$onBlur","handleChange","_formControlContext$o2","_otherHandlers$onChan","element","target","Error","args","handleClick","_otherHandlers$onClic","currentTarget","onClick","getRootProps","externalProps","propsEventHandlers","externalEventHandlers","getInputProps","mergedEventHandlers","ref"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@mui/base/InputUnstyled/useInput.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { formatMuiErrorMessage as _formatMuiErrorMessage } from \"@mui/utils\";\nimport * as React from 'react';\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { useFormControlUnstyledContext } from '../FormControlUnstyled';\nimport extractEventHandlers from '../utils/extractEventHandlers';\nexport default function useInput(parameters) {\n  const {\n    defaultValue: defaultValueProp,\n    disabled: disabledProp = false,\n    error: errorProp = false,\n    onBlur,\n    onChange,\n    onFocus,\n    required: requiredProp = false,\n    value: valueProp\n  } = parameters;\n  const formControlContext = useFormControlUnstyledContext();\n  let defaultValue;\n  let disabled;\n  let error;\n  let required;\n  let value;\n  if (formControlContext) {\n    var _formControlContext$d, _formControlContext$e, _formControlContext$r;\n    defaultValue = undefined;\n    disabled = (_formControlContext$d = formControlContext.disabled) != null ? _formControlContext$d : false;\n    error = (_formControlContext$e = formControlContext.error) != null ? _formControlContext$e : false;\n    required = (_formControlContext$r = formControlContext.required) != null ? _formControlContext$r : false;\n    value = formControlContext.value;\n    if (process.env.NODE_ENV !== 'production') {\n      const definedLocalProps = ['defaultValue', 'disabled', 'error', 'required', 'value'].filter(prop => parameters[prop] !== undefined);\n      if (definedLocalProps.length > 0) {\n        console.warn(['MUI: You have set props on an input that is inside a FormControlUnstyled.', 'Set these props on a FormControlUnstyled instead. Otherwise they will be ignored.', `Ignored props: ${definedLocalProps.join(', ')}`].join('\\n'));\n      }\n    }\n  } else {\n    defaultValue = defaultValueProp;\n    disabled = disabledProp;\n    error = errorProp;\n    required = requiredProp;\n    value = valueProp;\n  }\n  const {\n    current: isControlled\n  } = React.useRef(value != null);\n  const handleInputRefWarning = React.useCallback(instance => {\n    if (process.env.NODE_ENV !== 'production') {\n      if (instance && instance.nodeName !== 'INPUT' && !instance.focus) {\n        console.error(['MUI: You have provided a `slots.input` to the input component', 'that does not correctly handle the `ref` prop.', 'Make sure the `ref` prop is called with a HTMLInputElement.'].join('\\n'));\n      }\n    }\n  }, []);\n  const inputRef = React.useRef(null);\n  const handleInputRef = useForkRef(inputRef, handleInputRefWarning);\n  const [focused, setFocused] = React.useState(false);\n\n  // The blur won't fire when the disabled state is set on a focused input.\n  // We need to book keep the focused state manually.\n  React.useEffect(() => {\n    if (!formControlContext && disabled && focused) {\n      setFocused(false);\n\n      // @ts-ignore\n      onBlur == null ? void 0 : onBlur();\n    }\n  }, [formControlContext, disabled, focused, onBlur]);\n  const handleFocus = otherHandlers => event => {\n    var _otherHandlers$onFocu;\n    // Fix a bug with IE11 where the focus/blur events are triggered\n    // while the component is disabled.\n    if (formControlContext != null && formControlContext.disabled) {\n      event.stopPropagation();\n      return;\n    }\n    (_otherHandlers$onFocu = otherHandlers.onFocus) == null ? void 0 : _otherHandlers$onFocu.call(otherHandlers, event);\n    if (formControlContext && formControlContext.onFocus) {\n      var _formControlContext$o;\n      formControlContext == null ? void 0 : (_formControlContext$o = formControlContext.onFocus) == null ? void 0 : _formControlContext$o.call(formControlContext);\n    } else {\n      setFocused(true);\n    }\n  };\n  const handleBlur = otherHandlers => event => {\n    var _otherHandlers$onBlur;\n    (_otherHandlers$onBlur = otherHandlers.onBlur) == null ? void 0 : _otherHandlers$onBlur.call(otherHandlers, event);\n    if (formControlContext && formControlContext.onBlur) {\n      formControlContext.onBlur();\n    } else {\n      setFocused(false);\n    }\n  };\n  const handleChange = otherHandlers => (event, ...args) => {\n    var _formControlContext$o2, _otherHandlers$onChan;\n    if (!isControlled) {\n      const element = event.target || inputRef.current;\n      if (element == null) {\n        throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Expected valid input target. Did you use a custom \\`slots.input\\` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.` : _formatMuiErrorMessage(17));\n      }\n    }\n    formControlContext == null ? void 0 : (_formControlContext$o2 = formControlContext.onChange) == null ? void 0 : _formControlContext$o2.call(formControlContext, event);\n\n    // @ts-ignore\n    (_otherHandlers$onChan = otherHandlers.onChange) == null ? void 0 : _otherHandlers$onChan.call(otherHandlers, event, ...args);\n  };\n  const handleClick = otherHandlers => event => {\n    var _otherHandlers$onClic;\n    if (inputRef.current && event.currentTarget === event.target) {\n      inputRef.current.focus();\n    }\n    (_otherHandlers$onClic = otherHandlers.onClick) == null ? void 0 : _otherHandlers$onClic.call(otherHandlers, event);\n  };\n  const getRootProps = (externalProps = {}) => {\n    // onBlur, onChange and onFocus are forwarded to the input slot.\n    const propsEventHandlers = extractEventHandlers(parameters, ['onBlur', 'onChange', 'onFocus']);\n    const externalEventHandlers = _extends({}, propsEventHandlers, extractEventHandlers(externalProps));\n    return _extends({}, externalProps, externalEventHandlers, {\n      onClick: handleClick(externalEventHandlers)\n    });\n  };\n  const getInputProps = (externalProps = {}) => {\n    const propsEventHandlers = {\n      onBlur,\n      onChange,\n      onFocus\n    };\n    const externalEventHandlers = _extends({}, propsEventHandlers, extractEventHandlers(externalProps));\n    const mergedEventHandlers = _extends({}, externalProps, externalEventHandlers, {\n      onBlur: handleBlur(externalEventHandlers),\n      onChange: handleChange(externalEventHandlers),\n      onFocus: handleFocus(externalEventHandlers)\n    });\n    return _extends({}, mergedEventHandlers, {\n      'aria-invalid': error || undefined,\n      defaultValue: defaultValue,\n      ref: handleInputRef,\n      value: value,\n      required,\n      disabled\n    });\n  };\n  return {\n    disabled,\n    error,\n    focused,\n    formControlContext,\n    getInputProps,\n    getRootProps,\n    required,\n    value\n  };\n}"],"mappings":";AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,SAASC,qBAAqB,IAAIC,sBAAsB,QAAQ,YAAY;AAC5E,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,mBAAmB,IAAIC,UAAU,QAAQ,YAAY;AAC9D,SAASC,6BAA6B,QAAQ,wBAAwB;AACtE,OAAOC,oBAAoB,MAAM,+BAA+B;AAChE,eAAe,SAASC,QAAQ,CAACC,UAAU,EAAE;EAC3C,IACgBC,gBAAgB,GAQ5BD,UAAU,CARZE,YAAY;IAAA,uBAQVF,UAAU,CAPZG,QAAQ;IAAEC,YAAY,qCAAG,KAAK;IAAA,oBAO5BJ,UAAU,CANZK,KAAK;IAAEC,SAAS,kCAAG,KAAK;IACxBC,MAAM,GAKJP,UAAU,CALZO,MAAM;IACNC,QAAQ,GAINR,UAAU,CAJZQ,QAAQ;IACRC,OAAO,GAGLT,UAAU,CAHZS,OAAO;IAAA,uBAGLT,UAAU,CAFZU,QAA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